import axios from "@/utils/http";

enum Api {
    setting = "/v1/room",
}

export interface LiveSetting {
    uuid:string;
    roomName: string;
    roomPhoto: string;
    roomInformation: string;
    roomTags: string;
    roomAddress: string;
    roomStatus: number;
    status: number;
    roomUuids?: string[];
    roomPersons?:number;
    roomMessagesGroupsId:number
    userUuid:string
}

// 获取直播设置
export const getSetting = (uuid:string) => {
    return axios.get<LiveSetting>(Api.setting+"/"+uuid,);
};
// 创建直播设置
export const CreateSetting = (params:LiveSetting) => {
    return axios.post<LiveSetting>(Api.setting,params);
};
// 更新直播设置
export const updateSetting = (params: LiveSetting) => {
    return axios.put(Api.setting, params);
}; 